package net.comm.group.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;
import org.apache.struts.upload.FormFile;


public class GpartyForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";

	private int  	QryGroupID;			//	群组ID
	private int  	QryFirsort;			//	分类一
	private String  QryTitle;			//	活动主题
	private String  QryStatus;			//	状态
	private String  QryOrderby;			//	排序字符串
	private int  	QryUserID;			//	组织人ID
	
	private int  	PartyID;			//	活动序号
	private int  	GroupID;			//	群组ID
	private String  Title;				//	活动主题
	private String  Info;				//	介绍
	private int  	SmallPic;			//	活动首页小海报ID
	private String  Bgtime;				//	活动起始日期时间
	private String  Endtime;			//	活动结束日期时间
	private int  	Work_location;		//	活动省份
	private int  	Work_sublocation;	//	活动城市
	private int  	Firsort;			//	分类一
	private int  	Secsort;			//	分类二
	private int  	Thisort;			//	分类三
	private String  Place;			//	地点
	private String  Tel;			//	联系方式
	private String  SignEtime;		//	报名截止时间
	private String  Charge;				//	活动费用
	private int  	PlanNum;			//	计划活动人数
	private int  	SignNum;			//	目前报名人数
	private String  OrganType;		//	组织人类型
	private int  	UserID;				//	组织人ID
	private String  Ctime;			//	发起日期
	private int  	Attach;				//	点击数
	private int  UpCnt;				//顶的总数
	private int  DownCnt;			//踩的总数
	private String  Status;			//	状态
	private String  Mtime;			//	最后修改日期时间

	private FormFile  	Filepath;		//
	
	public GpartyForm() {
		super();
		// TODO Auto-generated constructor stub	
		Clear();
	}
	public void Clear() {
		
		QryGroupID = 0;
		QryTitle = "";			//	活动主题
		QryStatus = "";			//	状态
		QryFirsort = 0;
		QryOrderby = "";
		QryUserID = 0;
		
		PartyID = 0;			//	活动序号
		GroupID = 0;			//	群组ID
		Title = "";			//	活动主题
		Info = "";				//	介绍
		SmallPic = 0;			//	活动首页小海报ID
		Bgtime = "";			//	活动起始日期时间
		Endtime = "";			//	活动结束日期时间
		Work_location = 0;		//	活动省份
		Work_sublocation = 0;	//	活动城市
		Firsort = 0;			//	分类一
		Secsort = 0;			//	分类二
		Thisort = 0;			//	分类三
		Place = "";			//	地点
		Tel = "";				//	联系方式
		SignEtime = "";		//	报名截止时间
		Charge = "";				//	活动费用
		PlanNum = 0;			//	计划活动人数
		SignNum = 0;			//	目前报名人数
		OrganType = "";		//	组织人类型
		UserID = 0;				//	组织人ID
		Ctime = "";			//	发起日期
		Attach = 0;				//	点击数
		UpCnt = 0;
		DownCnt = 0;
		Status = "";			//	状态
		Mtime = "";			//	最后修改日期时间	
		
		Filepath = null;
	}

	private String action = "";
	
	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	



	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}	

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}



	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}
	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	public int getPartyID() {
		return PartyID;
	}
	public int getGroupID() {
		return GroupID;
	}
	public String getTitle() {
		return Title;
	}

	public String getInfo() {
		return Info;
	}
	public int getSmallPic() {
		return SmallPic;
	}
	public String getBgtime() {
		return Bgtime;
	}
	public String getEndtime() {
		return Endtime;
	}

	public String getPlace() {
		return Place;
	}
	public String getTel() {
		return Tel;
	}
	public String getSignEtime() {
		return SignEtime;
	}

	public int getPlanNum() {
		return PlanNum;
	}
	public int getSignNum() {
		return SignNum;
	}
	public String getOrganType() {
		return OrganType;
	}
	public int getUserID() {
		return UserID;
	}
	public String getCtime() {
		return Ctime;
	}
	public int getAttach() {
		return Attach;
	}
	public String getStatus() {
		return Status;
	}
	public String getMtime() {
		return Mtime;
	}
	public void setPartyID(int partyID) {
		PartyID = partyID;
	}
	public void setGroupID(int groupID) {
		GroupID = groupID;
	}
	public void setTitle(String title) {
		Title = title;
	}

	public void setInfo(String info) {
		Info = info;
	}
	public void setSmallPic(int smallPic) {
		SmallPic = smallPic;
	}
	public void setBgtime(String bgtime) {
		Bgtime = bgtime;
	}
	public void setEndtime(String endtime) {
		Endtime = endtime;
	}

	public void setPlace(String place) {
		Place = place;
	}
	public void setTel(String tel) {
		Tel = tel;
	}
	public void setSignEtime(String signEtime) {
		SignEtime = signEtime;
	}

	public void setPlanNum(int planNum) {
		PlanNum = planNum;
	}
	public void setSignNum(int signNum) {
		SignNum = signNum;
	}
	public void setOrganType(String organType) {
		OrganType = organType;
	}
	public void setUserID(int userID) {
		UserID = userID;
	}
	public void setCtime(String ctime) {
		Ctime = ctime;
	}
	public void setAttach(int attach) {
		Attach = attach;
	}
	public void setStatus(String status) {
		Status = status;
	}
	public void setMtime(String mtime) {
		Mtime = mtime;
	}
	public int getQryGroupID() {
		return QryGroupID;
	}
	public void setQryGroupID(int qryGroupID) {
		QryGroupID = qryGroupID;
	}

	public void setQryTitle(String qryTitle) {
		QryTitle = qryTitle;
	}
	public void setQryStatus(String qryStatus) {
		QryStatus = qryStatus;
	}


	public String getCharge() {
		return Charge;
	}
	public void setCharge(String charge) {
		Charge = charge;
	}
	public int getQryFirsort() {
		return QryFirsort;
	}
	public void setQryFirsort(int qryFirsort) {
		QryFirsort = qryFirsort;
	}
	public String getQryTitle() {
		return QryTitle;
	}
	public String getQryStatus() {
		return QryStatus;
	}

	public FormFile getFilepath() {
		return Filepath;
	}
	public void setFilepath(FormFile filepath) {
		Filepath = filepath;
	}
	public int getWork_location() {
		return Work_location;
	}
	public int getWork_sublocation() {
		return Work_sublocation;
	}
	public int getFirsort() {
		return Firsort;
	}
	public int getSecsort() {
		return Secsort;
	}
	public int getThisort() {
		return Thisort;
	}
	public void setWork_location(int work_location) {
		Work_location = work_location;
	}
	public void setWork_sublocation(int work_sublocation) {
		Work_sublocation = work_sublocation;
	}
	public void setFirsort(int firsort) {
		Firsort = firsort;
	}
	public void setSecsort(int secsort) {
		Secsort = secsort;
	}
	public void setThisort(int thisort) {
		Thisort = thisort;
	}
	public int getUpCnt() {
		return UpCnt;
	}
	public int getDownCnt() {
		return DownCnt;
	}
	public void setUpCnt(int upCnt) {
		UpCnt = upCnt;
	}
	public void setDownCnt(int downCnt) {
		DownCnt = downCnt;
	}
	public String getQryOrderby() {
		return QryOrderby;
	}
	public void setQryOrderby(String qryOrderby) {
		QryOrderby = qryOrderby;
	}
	public int getQryUserID() {
		return QryUserID;
	}
	public void setQryUserID(int qryUserID) {
		QryUserID = qryUserID;
	}





	
}